<!-- 关于作者 -->
<?php
include './app-begin.php';
include __DIR__ . '/../Model/Config.php';
include __DIR__ . '/../Model/DB.php';
$fetch = new Fetch($config);
$data = $fetch->fetchUserById($_GET['user_id']);
?>
<main class="body-data">
    <div class="panel_modify">
        <div class="panel_cancel_modify">返回</div>
        <form action="../Model/UserModify.php" method="post">
            <div class="all_form_modify">
                <input type="hidden" name="user_id" value=<?php echo $data['user_id'] ?>>
                <input type="text" name="username" required placeholder="请输入用户名此项为必填项！" value=<?php echo $data['username']
                                                                                                ?>>
                <input type="password" name="password" required placeholder="请输入密码此项为必填项！"
                    value=<?php echo
                                                                                                    $data['password'] ?>>
                <input type="email" name="user_email" required placeholder="请输入邮箱！" value=<?php echo $data['user_email']
                                                                                            ?>>
                <input type="text" name="user_age" required placeholder="请输入年龄此项为必填项！" value=<?php echo $data['user_age']
                                                                                                ?>>
                <input type="text" name="user_sex" required placeholder="请输入性别" value=<?php echo $data['user_sex'] ?>>
                <input type="tel" name="user_tel" required placeholder="请输入电话此项为必填项！" value=<?php echo $data['user_tel']
                                                                                            ?>>
                <input type="text" name="user_address" required placeholder="请输入地址此项为必填项！"
                    value=<?php echo
                                                                                                    $data['user_address'] ?>>
            </div>
            <div class="all_button_modify">
                <button class="panel_reset_modify" type="reset">重置</button>
                <button class="panel_submit_modify" type="submit">修改</button>
            </div>
        </form>
    </div>
</main>
<script src="../assets/js/user.js"></script>
<?php
include './app-end.php';
?>